
#include "EnvVar.h"

using namespace project_taic;

project_taic::CEnvVar project_taic::EnvVar;

// [*] project_taic::CEnvVar

const char* project_taic::CEnvVar::GetText_ImageSet( int sgnImageSet ) const
{
	if (sgnImageSet==0) return "Train";
	if (sgnImageSet==1) return "Test";
	return "NULL";
}

const char* project_taic::CEnvVar::GetText_PosNeg( int sgnPosNeg ) const
{
	if (sgnPosNeg==1) return "Pos";
	if (sgnPosNeg==0) return "Neg";
	return "NULL";
}

std::string project_taic::CEnvVar::GetFN_Model( int ClassIndex ) const
{
	if (ClassIndex<0 || ClassIndex>=FullDataSet.ClassAmount) return "NULL";
	const CClassInformation& tClassInfo = FullDataSet.List_ClassInfo.pElement[ClassIndex];
	char strTemp[10001];
	sprintf_s(strTemp, "%sM.%03d.%s.txt",
		strPN_ModelBase.c_str(), ClassIndex, tClassInfo.strName.c_str());
	return strTemp;
}

